package com.lanyan.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import com.lanyan.system.domain.HotSearch;

/**
 * 热搜Mapper接口
 *
 * @author lanyan
 * @date 2024-11-26
 */
public interface HotSearchMapper extends BaseMapper<HotSearch>
{
    /**
     * 查询热搜
     *
     * @param hotSearchId 热搜主键
     * @return 热搜
     */
    public HotSearch selectHotSearchByHotSearchId(Long hotSearchId);

    /**
     * 查询热搜列表
     *
     * @param hotSearch 热搜
     * @return 热搜集合
     */
    public List<HotSearch> selectHotSearchList(HotSearch hotSearch);

    /**
     * 新增热搜
     *
     * @param hotSearch 热搜
     * @return 结果
     */
    public int insertHotSearch(HotSearch hotSearch);

    /**
     * 修改热搜
     *
     * @param hotSearch 热搜
     * @return 结果
     */
    public int updateHotSearch(HotSearch hotSearch);

    /**
     * 删除热搜
     *
     * @param hotSearchId 热搜主键
     * @return 结果
     */
    public int deleteHotSearchByHotSearchId(Long hotSearchId);

    /**
     * 批量删除热搜
     *
     * @param hotSearchIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHotSearchByHotSearchIds(Long[] hotSearchIds);
}
